<h4><?php echo $form->Html->link(__('Tambah', true),'add'); ?></h4>

<table width="100%" border="1" cellpadding="0" cellspacing="0">
<!-- TABLE HEADER TANPA FUNGSI SORTING
	<tr>
		<th width="30"> ID </th>
		<th width="100">Nama</th>
		<th width="150">Alamat</th>
		<th width="90">Tanggal</th>
		<th colspan="3">Aksi</th>
	</tr>
-->
	<tr>
		<th width="30"><?php echo $paginator->sort('id');?></th>
		<th width="100"><?php echo $paginator->sort('nama');?></th>
		<th width="150"><?php echo $paginator->sort('alamat');?></th>
		<th width="90"><?php echo $paginator->sort('tanggal');?></th>
		<th colspan="3">Aksi</th>
	</tr>

	
<?php
	foreach ($latihans as $latihan):
?>

	<tr>
		<td> <?php echo $latihan['Latihan']['id']; ?> </td>
		<td> <?php echo $latihan['Latihan']['nama']; ?> </td>
		<td> <?php echo $latihan['Latihan']['alamat']; ?> </td>
		<td> <?php echo $latihan['Latihan']['tanggal']; ?> </td>
		
		<td width="50"> <?php echo $form->Html->link('Tampil',array('action' => 'tampil', $latihan['Latihan']['id']))?> </td>
		<td width="50"> <?php echo $form->Html->link('Ubah',array('action' => 'ubah', $latihan['Latihan']['id']))?> </td>
		<td width="50"> <?php echo $form->Html->link('Delete',array('action' => 'delete', $latihan['Latihan']['id']),null,'yakin....?');?> </td>
	</tr>
	
<?php
	endforeach;
?>
	
</table>
<?php echo $this->element('paging');?>